cmake_minimum_required(VERSION 3.0)

message(STATUS "common CMAKE_SOURCE_DIR: ${CMAKE_SOURCE_DIR}")
message(STATUS "common CMAKE_CURRENT_SOURCE_DIR: ${CMAKE_CURRENT_SOURCE_DIR}")

set(COMMON_SRCPATH ${CMAKE_SOURCE_DIR}/src/common)
set(COMMON_SOURCES
    ${COMMON_SRCPATH}/base64.c
    ${COMMON_SRCPATH}/cjson.c
    ${COMMON_SRCPATH}/config.c
    ${COMMON_SRCPATH}/des.c
    ${COMMON_SRCPATH}/kmysql.c
    ${COMMON_SRCPATH}/log.c
    ${COMMON_SRCPATH}/md5.c
    ${COMMON_SRCPATH}/redis_api.c
    ${COMMON_SRCPATH}/util.c
    )
set(COMMON_INCLUDE_DIRS ${CMAKE_SOURCE_DIR}/include/common)
message(STATUS "COMMON_INCLUDE_DIRS: ${COMMON_INCLUDE_DIRS}")